package com.atguigu.e_reflect.constructor;

public class Student {
    //新建四个构造方法
    public Student(){
        System.out.println("学生类的无参构造执行了 ! ");
    }

    protected Student(String name){
        System.out.println("学生类的有参构造执行了 ! " + name);
    }

    Student(int age){
        System.out.println("学生类的有参构造执行了 ! " + age);
    }
    private Student(String name,int age){
        System.out.println("学生类的有参构造执行了 ! " + name + " , " + age);
    }

}
